package com.lin.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 
 * </p>
 *
 * @author 林伟鸿
 * @since 2022-04-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class ProjectStatus implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY) //只接收，不响应
    @NotNull(message = "项目Id不能为空")
    private Integer projectId;

    /**
     * 同意占比
     */
    private Double state;

    /**
     * 0=还没开启投票；1=开启了投票
     */
    @TableField("isOnVote")
    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private Integer isOnVote;


}
